2 // Dictionary+Ext.swift
5 // Created by Pawel Dabrowski on 10/07/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
12 var urlEncoded: String {
13 var parts = [String]()
15 for (key, value) in self {
16 let keyString = "\(key)".urlEncoded()
17 let valueString = "\(value)".urlEncoded()
18 let query = "\(keyString)=\(valueString)"
22 return parts.joined(separator: "&")